<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网页信息抓取器</title>
</head>

<body>
    <h1>网页信息抓取器</h1>
    <form method="post" action="/">
        <label for="url">输入链接：</label>
        <input type="text" id="url" name="url" required>
        <button type="submit">提交</button>
    </form>
    {% if title %}
    <h2>抓取结果：</h2>
    <p><strong>标题：</strong> {{ title }}</p>
    <p><strong>关键词：</strong> {{ keywords }}</p>
    <p><strong>描述：</strong> {{ description }}</p>
    {% endif %}
</body>

</html>